<?php
	function build_user_menu(){
		$menu = "<ul>";
		foreach(User::get_user_list() as $user){
			$menu .= "<li><a href='".$_SERVER['PHP_SELF']."?page=Users&user=".$user->idbooster."'>";
			$menu .= misc::strcut($user->name." ".$user->surname,17)." (".$user->idbooster.")";	
			$menu .= "</a></li>";
		}
		$menu .= "</ul>";
		return $menu;
	}
?>

<div id="usermenu" class="scrollable">
	<?php echo build_user_menu();?>
</div>
<div id="userplaceholder">
	<?php 
		if(isset($_GET['user'])){
			include('user_detail_inc.php');
		}
		else{
			include('users_info_inc.php');
		}
	?>
</div>